package com.company;

public class Test17猴子吃桃 {
    public static void main(String[] args) {
        System.out.println(chi(10));

    }
    public  static  int chi(int day){
        if(day==0){
            return 1;
        }else {
            return (chi(day-1)+1)*2;
        }
    }
}

